import { NavigateFunction } from "react-router";

export default (navigator: NavigateFunction) => {
    if (window.location.href.includes('bjsc')) {
        window.location.href = '/'
    } else {
        navigator('/login')
    }
}